"""
获取页面title/url
"""
import time
from selenium import webdriver

driver = webdriver.Chrome()
driver.maximize_window()
driver.get("https://baidu.com")
title = driver.title  # 获取当前页面title
url = driver.current_url  # 获取当前页面url
page_source = driver.page_source  # 获取源代码
print(title)
print(url)
print(page_source)
time.sleep(3)
driver.close()
